package com.example.event;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @author yexi
 */
@Slf4j
@Component
public class LogEventListener {

    @EventListener
    public void orderLog(Event event) {
        log.info("[事件已结束]日志监听器监听到已完成事件:{}，即将进行日志记录处理", event);
    }
}